/**
 * 等待
 * @param timeout 等待的时间，单位：毫秒
 * @example sleep(timeout);
 */
export default function sleep(timeout: number) {
	return new Promise<void>((resolve) => {
		setTimeout(() => {
			resolve();
		}, timeout);
	});
}
